package com.m3839.sdk.anti.ui.controller;

import android.app.Activity;

import com.m3839.sdk.anti.bean.LinkBean;
import com.m3839.sdk.anti.bean.PopConfigBean;

import java.util.List;

/**
 * @author ChenBaoyang
 * @description: IAntiUiController
 * @date 2021/12/8 16:34
 */
public interface IAntiUiController {



    /**
     * 展示防沉迷弹窗
     *
     * @param activity
     * @param configBeans
     * @param nick
     * @param uid
     * @param loginType
     */
    void showFcmPop(Activity activity, List<PopConfigBean> configBeans, String nick,
                        String uid, String loginType);

    /**
     * 更新防沉迷弹窗
     *
     * @param beforeStart 倒计时剩余的时间，单位是秒
     */
    void updateAntiDialog(int beforeStart);

    /**
     * 显示实名认证弹窗
     *
     * @param activity
     * @param uid
     * @param token
     * @param loginType
     */
    void showRealNameDialog(Activity activity, String uid, String loginType, String token);

    /**
     * 显示网络异常提示，或者接口异常提示
     *
     * @param activity
     */
    void showNetTipDialog(Activity activity);

    /**
     * 显示悬浮气泡
     *
     * @param activity
     * @param tip
     * @param linkBean
     */
    void showFloatBubble(Activity activity, String tip, final LinkBean linkBean);

    /**
     * 关闭防沉迷弹窗
     */
    void dismissAntiDialog();

    /**
     * 关闭实名认证弹窗
     */
    void dismissRealDialog();

    /**
     * 关闭所有的防沉迷弹窗
     */
    void dismissAllDialog();

    /**
     * 关闭悬浮气泡
     */
    void dismissFloatBubble();


}
